function Page () {
    $.extend = (true, this, {
        window: $(window),
        nav: $('nav > ul > li'),
        section: null,
        articule: null
    });
alert(this.window);
    this.init();
}
Page.prototype = {
    init: function() {
        var that = this,
            mainNav = $('nav_main');
        $.extend = (this,{
            scrollLast: 0,
            resizeTimeout: null
        });

        this.window.resize(function() {
            that.onResize();
        });

        $('#nav_main').click(function() {
            if(that.window.width() > 1000){
                mainNav.slideUp(300);
            }
        });
    },
    onResize: function() {
        clearTimeout(this.resizeTimeout);
    }
};

var Home = new Page();
